/**
 * 作者：陈文斌 on 2018/12/27.
 * 邮箱：chen_wennbin@163.com
 * 版本：v1.0
 */

import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class AppScreen {
  static setWidth(width) {
    return ScreenUtil().setWidth(width);
  }

  static setHeight(height) {
    return ScreenUtil().setHeight(height);
  }
}

class AppImagePaths {
  static const String AvatarImage = 'images/ic_hander.png';
}

class AppColors {
  /// 页面背景默认色
  static const PageBackgroundColor = Color(0xFFF5F5F5);

  /// 主颜色
  static const MainColor = Color(0xFF3C86F3);

  /// 辅色
  static const AuxiliaryColor = Color(0xFF9AD1FF);

  /// 图标辅色 绿色
  static const IconAuxiliaryColor_Green = Color(0xFF00BE98);

  /// 图标辅色 橙色
  static const IconAuxiliaryColor_Orange = Color(0xFFFB7133);

  /// 图标辅色 紫色
  static const IconAuxiliaryColor_Purple = Color(0xFF7A7EF6);

  /// 提示色
  static const PromptColor = Color(0xFFFE4861);

  /// 标题、重要文字
  static const TextColor = Color(0xFF333333);

  /// 次要文字、线性图标
  static const DetailTextColor = Color(0xFF666666);

  /// 待输入文字
  static const PlaceholderTextColor = Color(0xFF999999);

  /// 分割线
  static const LineColor = Color(0xFFE3E3E3);

  /// 登录默认头像
  static const DefaultAvatarColor = Color(0xFFBABFC4);

  /// 验证码底色、添加照片底色
  static const CommonButtonBGColor = Color(0xFFF6F6F6);
}

class AppFontSizes {
  static const double Font18 = 18;
  static const double Font17 = 17;
  static const double Font16 = 16;
  static const double Font15 = 15;
  static const double Font14 = 14;
  static const double Font13 = 13;
  static const double Font12 = 12;
}

class AppFontFamilies {
  static const String PingFangSC = 'PingFangSC';
}

class AppStyles {
  static const Color _textColor = Color(0xFF353535);

  static const TextStyle titleStyle = TextStyle(
    color: _textColor,
    fontSize: AppFontSizes.Font18,
    fontFamily: AppFontFamilies.PingFangSC,
    fontWeight: FontWeight.w700,
  );

  static const Color _actionColor = Color(0xFF232323);
  static const TextStyle actionsTitleStyle = TextStyle(
    color: _actionColor,
    fontSize: AppFontSizes.Font15,
    fontFamily: AppFontFamilies.PingFangSC,
  );
}

class PaddingSet {
  static PaddingLeft(double left) {
    return Padding(padding: EdgeInsets.only(left: left));
  }

  static PaddingTop(double top) {
    return Padding(padding: EdgeInsets.only(top: top));
  }

  static PaddingRight(double right) {
    return Padding(padding: EdgeInsets.only(right: right));
  }

  static PaddingBottom(double bottom) {
    return Padding(padding: EdgeInsets.only(bottom: bottom));
  }
}
